package com.ykht.proj.admin.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

@Data
@ToString
public class FileVo {
	@ApiModelProperty("源文件")
	@NotNull(message = "请上传文件")
	private MultipartFile file;
	@ApiModelProperty("限制的字节大小,单位kb")
	private Long size;
	@ApiModelProperty("限制的高度")
	private Integer height;
	@ApiModelProperty("限制的宽度")
	private Integer width;
	@ApiModelProperty("限制的类型,视频video,图片image")
	@NotNull(message = "请填写文件类型,视频video,图片image")
	private String fileType;
}
